using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Localization;
using Volo.Abp.Validation;
using Volo.Abp.Authorization;
using FileStorageService.Localization;
using Microsoft.Extensions.DependencyInjection;

namespace FileStorageService;

/// <summary>
/// 文件存储服务领域共享模块
/// </summary>
[DependsOn(
    typeof(AbpValidationModule),
    typeof(AbpLocalizationModule),
    typeof(AbpAuthorizationModule)
)]
public class FileStorageServiceDomainSharedModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        Configure<AbpLocalizationOptions>(options =>
        {
            options.Resources
                .Add<FileStorageServiceResource>("en");
        });
    }
}